<?php
require_once ("execute/logged.php");
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sign in &middot; TECHDERA Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<!-- Le styles -->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="assets/js/jquery.min.js"></script>
<style type="text/css">
body {
	padding-top: 40px;
	padding-bottom: 40px;
	background-color: #f5f5f5;
}

.form-signin {
	max-width: 300px;
	padding: 19px 29px 29px;
	margin: 0 auto 20px;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.form-signin .form-signin-heading,.form-signin .checkbox {
	margin-bottom: 10px;
}

.form-signin input[type="text"],.form-signin input[type="password"] {
	font-size: 16px;
	height: auto;
	margin-bottom: 15px;
	padding: 7px 9px;
}
</style>
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

<!-- Fav and touch icons -->


</head>

<body>

	<div class="container">


		<div class="modal" id="loginModal">

		<?php
		if (isset ( $_SESSION ['ERRMSG_ARR'] ) && is_array ( $_SESSION ['ERRMSG_ARR'] ) && count ( $_SESSION ['ERRMSG_ARR'] ) > 0) {
			echo "<div class='alert alert-error'>";
			foreach ( $_SESSION ['ERRMSG_ARR'] as $msg ) {
				echo '<span>', $msg, '</span><br/>';
			}
			echo '</div>';
			unset ( $_SESSION ['ERRMSG_ARR'] );
		}
		if (isset ( $_SESSION ['logout'] )) {
			echo "<div class='alert alert-success'>" . $_SESSION ['logout'] . "</div>";
		}
		unset ( $_SESSION ['logout'] );
		if (isset ( $_SESSION ['user_login_need'] )) {
			echo "<div class='alert'>" . $_SESSION ['user_login_need'] . "</div>";
		}
		unset ( $_SESSION ['user_login_need'] );
		?>
		<?php
		if (isset ( $_GET ['signup'] ) && $_GET ['signup'] == "success") {
			?>
			<div class="alert alert-success">
				Congratulations, you have successfully Signed Up in TechWorks<br>Please
				check your email for activation of your account.
			</div>
			<?php

		}
		?>
		<?php
		if (isset ( $_GET ['confirm'] ) && $_GET ['confirm'] == "success") {
			?>
			<div class="alert alert-success">You have successfully activated your
				account.</div>
				<?php
					
		}
		?>
			<div class="modal-header">


				<!--<button type="button" class="close" data-dismiss="modal">?</button>-->
				<a href="signup.php" class="btn btn-warning pull-right"><i
					class="icon-plus"></i>&nbsp;Create Account</a>
				<h3>Login to TechWorks</h3>


			</div>
			<div class="modal-body" style="text-align: center;">
				<div class="row-fluid">
					<div class="span10 offset1">
						<div id="modalTab">
							<div class="tab-content">
								<div class="tab-pane active" id="login">
									<form method="post" action='execute/login.php'
										name="login_form" class="form-horizontal">

										<div class="control-group">
											<label class="control-label" for="inputIcon">Email</label>
											<div class="controls">
												<div class="input-prepend">
													<span class="add-on"><i class="icon-pencil"></i> </span> <input
														class="span10 input-xlarge" id="inputIcon" type="text"
														placeholder="Your Email Id" name="secname">
												</div>
											</div>
										</div>



										<div class="control-group">
											<label class="control-label" for="inputIcon">Password</label>
											<div class="controls">
												<div class="input-prepend">
													<span class="add-on"><i class="icon-lock"></i> </span> <input
														class="span10" id="inputIcon" type="password"
														placeholder="Password" name="secpass">
												</div>
											</div>
										</div>


										<a href="index.php" class="btn pull-left">Back to Home</a>
										<p class="pull-right">
											<button type="submit" class="btn btn-success">Sign in</button>
											<a href="#forgotpassword" data-toggle="tab">Forgot Password?</a>
										</p>
									</form>
								</div>

								<div class="tab-pane fade" id="forgotpassword">
									<form method="post" action='execute/login.php'
										name="forgot_password" class="form-horizontal">
										<p>Hey this stuff happens, send us your email and we'll reset
											it for you!</p>

										<div class="control-group">
											<label class="control-label" for="inputIcon">Email address</label>
											<div class="controls">
												<div class="input-prepend">
													<span class="add-on"><i class="icon-envelope"></i> </span>
													<input class="span10" id="inputIcon" type="text">
												</div>
											</div>
										</div>

										<p class="pull-right">
											<button type="submit" class="btn btn-success">Submit</button>
											<a href="#login" data-toggle="tab">Wait, I remember it now!</a>
										</p>
									</form>

								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="clearfix"></div>

		</div>
		<!-- /container -->

	</div>

	<!-- Le javascript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="assets/js/jquery.js"></script>
	<script src="assets/js/bootstrap-transition.js"></script>
	<script src="assets/js/bootstrap-alert.js"></script>
	<script src="assets/js/bootstrap-modal.js"></script>
	<script src="assets/js/bootstrap-dropdown.js"></script>
	<script src="assets/js/bootstrap-scrollspy.js"></script>
	<script src="assets/js/bootstrap-tab.js"></script>
	<script src="assets/js/bootstrap-tooltip.js"></script>
	<script src="assets/js/bootstrap-popover.js"></script>
	<script src="assets/js/bootstrap-button.js"></script>
	<script src="assets/js/bootstrap-collapse.js"></script>
	<script src="assets/js/bootstrap-carousel.js"></script>
	<script src="assets/js/bootstrap-typeahead.js"></script>

</body>
</html>

<!-- Localized -->
